package com.qiji.video.util;

import org.springframework.util.DigestUtils;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;

public class Md5Util {
    public static String getMd5Key(String password){
        String md5key = "";
        try {
            md5key = DigestUtils.md5DigestAsHex(password.getBytes("utf-8"));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return md5key;
    }
}
